package com.itqian.service.impl;

import com.itqian.entity.User;
import com.itqian.repository.UserRepository;
import com.itqian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shishuqian
 * date 2021/9/15
 * time 16:24
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public User findById(Integer id) {
        return userRepository.findById(id);
    }
}
